package cn.gok.code.controller.Impl;

import cn.gok.code.controller.MyBaseController;
import cn.gok.code.entity.Student;
import cn.gok.code.mapper.StudentMapper;
import cn.gok.code.service.Impl.StudentService;
import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

/**
 * @ClassName StudentController
 * @Description TODO
 * @Author HP
 * @Date 19:36 2022/7/21
 * @Version 1.0
 **/
@RestController
@RequestMapping("student")
public class StudentController extends MyBaseController<Student, StudentMapper> {
    @Autowired
    private StudentService service;

    //3）	模糊查询学生信息
    @RequestMapping("selLike")
    public List<Student> selLike(@RequestBody JSONObject json){
        return service.selLike(json.getString("sname"));
    }
    //4）	分页查询学生信息

}
